package com.tedu.egarticle_2.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Data
public class UserArticleParam {
    @ApiModelProperty(value = "标题", required = true)
    @NotEmpty(message = "标题不能为空白")
    private String title;
    @ApiModelProperty(value = "文章内容", required = true)
    @Size(min = 10, max = 500, message = "内容长度为10-500")
    private String content;
}
